/*
 * @Author: 徐建辰
 * @Date: 2022-03-08 10:33:15
 * @LastEditTime: 2022-03-08 10:36:20
 * @LastEditors: 徐建辰
 * @Description: vite开发环境配置
 */
import {mergeConfig} from 'vite'
import eslint from 'vite-plugin-eslint'
import baseConfig from './vite.config.base'

export default mergeConfig({
  mode: 'development',
  server: {
    open: true,
    fs: {
      strict: true,
    }
  },
  plugins: [
    eslint({
      cache: false,
      include: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.js', 'src/**/*.vue'],
      exclude: ['node_modules'],
    })
  ]
}, baseConfig)
